package com.cloud.controller.data.login;

import com.cloud.base.annotation.NeedSetValue;
import com.cloud.service.user.UserService;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class OrderData implements Serializable {
    Long id;
    String orderNo;
    Long userId;
    @NeedSetValue(id = "getById", beanClass = UserService.class, method = "getById", param = "userId", value = "userName")
    String userName;
    @NeedSetValue(ref = "getById", value = "age", param = "userId")
    Integer age;
    @NeedSetValue(ref = "getById", value = "userRole", param = "userId")
    String userRole;
    @NeedSetValue(ref = "getById", value = "user", param = "userId", isObject = true)
    User user;
    @NeedSetValue(beanClass = UserService.class, method = "list", value = "users", isObject = true)
    List<User> users;


}
